package com.order.feign;

import com.common.domain.pojo.Result;
import com.common.feign.OpenFeignRequestPrefix;
import com.order.domain.pojo.Course;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "eselect-course-service")
public interface CourseFeignClient {


    // 根据课程唯一标识获取课程信息
    @GetMapping(OpenFeignRequestPrefix.COURSE_SERVICE + "/infoByUniqueIdentification")
    Result<Course> getCourseInfoByUniqueIdentification(@RequestParam("UniqueIdentification") Object UniqueIdentification);
}
